import request from '@/utils/request'
// 获取所有
export function getTeacherList(data) {
    return request({
      url: '/teacher/list',
      method: 'get',
      params:data
    })
  }
  
  // 获取新增
  export function getAdd(data) {
      return request({
        url: '/teacher',
        method: 'post',
        data
      })
    }
// 详情
export function getDsc(id) {
    return request({
        url: `/teacher/${id}`,
        method: 'get',
    })
}
  // 修改
  export function getUpdate(data) {
      return request({
        url: '/teacher',
        method: 'put',
        data
      })
    }
  
  // 删除
  export function getDet(id) {
    return request({
        url: `/teacher/del/${id}`,
        method: 'delete',
    })
}

// 文档配置
export function getMeasure(data) {
    return request({
      url: '/measure/config',
      method: 'put',
      data
    })
  }
// 详情
export function getMeasureDsc(data) {
    return request({
        url: '/measure/config/type',
        method: 'get',
        params:data
    })
}
// 价格新增
export function getPriceAdd(data) {
  return request({
    url: '/measure/config/price',
    method: 'post',
    data
  })
}
// 价格修改
export function getPriceUpdate(data) {
  return request({
    url: '/measure/config/price',
    method: 'put',
    data
  })
}
// 价格详情
export function getPriceDsc(data) {
  return request({
    url: '/measure/config/price/type',
    method: 'get',
    params:data
  })
}

